﻿// CC0 Jay R. Wren
namespace SRTSolutions.Elevate.Guide
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using NUnit.Framework;
    using SRTSolutions.Elevate.FuncExtensions;
    [TestFixture]
    public class Conditionals
    {

        [Test]
        public void IfConditionallyExecutesAnAction()
        {
            bool ran = false;
            Action Run = new Action(() => ran = true);
            Run.If(false);
            Assert.IsFalse(ran);
            Run.If(true);
            Assert.IsTrue(ran);
        }

    }
}